{include file="header.html"}
<body class="gr">

<div class="navBar">
	<a class="left" href="javascript:history.back()"><i class="return"></i></a>
	<div class="titleView-x">选择户籍类型</div>
</div>

<div class="cart-person-type main-top">
	<div class="view">
		<a href="javascript:void(0)" class="ge-bottom">本地城镇</a>
		<a href="javascript:void(0)" class="ge-bottom">本地农村</a>
		<a href="javascript:void(0)" class="ge-bottom">外地城镇</a>
		<a href="javascript:void(0)">外地农村</a>
	</div>
	
	<div class="buttonView">
		<a href="javascript:void(0)" class="btn">确定</a>
	</div>
</div>

{include file="footer.html"}
<script>
$(function(){
	$('.cart-person-type .view a').click(function(){
		$(this).addClass('selected').siblings().removeClass('selected');
	});
	$('.cart-person-type .btn').click(function(){
		if(!$('.cart-person-type .selected').length){
			$.overloadError('请选择户籍类型');
			return;
		}
		var type = $('.cart-person-type .selected').text();
		var delegate = delegateBodyView();
		if(!delegate.length)return;
		delegate.find('#type').val(type);
		delegate.find('.view > a .text').html(type);
		popBodyView();
	});
});
</script>